package com.gzsxy.proxy;

/**
 * @author xiaolong
 * @version 1.0
 * @description: 中介
 * @date 2022/4/25 20:16
 */
public class Proxy implements Rent{
    private Host host;

    public Proxy(Host host) {
        this.host = host;
    }

    public Proxy() {
    }


    @Override
    public void rent() {
        seeHouse();
        host.rent();
        hetong();
        fare();
    }


    public void seeHouse(){
        System.out.println("中介带你看房");
    }



    public void hetong(){
        System.out.println("签租赁合同");
    }

    public void fare(){
        System.out.println("收中介费");
    }

}
